﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Services;

namespace ProyectoLab4
{
    public partial class Inicio : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
          
        }

        protected void btnIniciarSesion_Click(object sender, EventArgs e)
        {
            GestionUsuarios usr = new GestionUsuarios();
            if (usr.Loguearse(txtUsuario.Text, txtContraseña.Text) == true)
            {
                Server.Transfer("Mails.aspx");
            }
            else 
            {
                lblErrorIngreso.Visible = true;
            }
        }
        
    }
}